package com.kun.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by 荣坤 on 2015/12/6.
 */
public class ToastUtil {
    public static void toastLong(Context ct, String msg){
        Toast.makeText(ct,msg, Toast.LENGTH_LONG).show();
    }
    public static void toastShort(Context ct, String msg){
        Toast.makeText(ct,msg, Toast.LENGTH_SHORT).show();
    }
    public static void toastLong(Context ct, int StringId){
        Toast.makeText(ct,StringId, Toast.LENGTH_LONG).show();
    }
    public static void toastShort(Context ct, int StringId){
        Toast.makeText(ct,StringId, Toast.LENGTH_SHORT).show();
    }
//    public static void toastCenter(Context context, String msg){
//        new CenterToast(context, msg).show();
//    }
//    public static void toastCenter(Context context, int StringId){
//        new CenterToast(context, context.getString(StringId)).show();
//    }
//    public static void showToastLongDebug(Context context, String msg) {
//        if (!BuildConfig.ISOPEN)
//            Toast.makeText(context, "debug:" + msg, Toast.LENGTH_LONG).show();
//    }
//
//    public static void showToastShortDebug(Context context, String msg) {
//        if (!BuildConfig.ISOPEN)
//            Toast.makeText(context, "debug:" + msg, Toast.LENGTH_SHORT).show();
//    }
}
